package com.songcha.library_business.util

import java.util.Calendar

class XingZuoUtil {
    companion object{
        @JvmStatic
        fun getXingZuo(month:Int,day:Int):String{
            when(month){
                1->{
                    if(day <= 19)
                        return "摩羯座"
                    else
                        return "水瓶座"
                }
                2->{
                    if(day <= 18)
                        return "水瓶座"
                    else
                        return "双鱼座"
                }
                3->{
                    if(day <= 20)
                        return "双鱼座"
                    else
                        return "白羊座"
                }
                4->{
                    if(day <= 19)
                        return "白羊座"
                    else
                        return "金牛座"
                }
                5->{
                    if(day <= 20)
                        return "金牛座"
                    else
                        return "双子座"
                }
                6->{
                    if(day <= 21)
                        return "双子座"
                    else
                        return "巨蟹座"
                }
                7->{
                    if(day <= 22)
                        return "巨蟹座"
                    else
                        return "狮子座"
                }
                8->{
                    if(day <= 22)
                        return "狮子座"
                    else
                        return "处女座"
                }
                9->{
                    if(day <= 22)
                        return "处女座"
                    else
                        return "天秤座"
                }
                10->{
                    if(day <= 23)
                        return "天秤座"
                    else
                        return "天蝎座"
                }
                11->{
                    if(day <= 22)
                        return "天蝎座"
                    else
                        return "射手座"
                }
                12->{
                    if(day <= 21)
                        return "射手座"
                    else
                        return "摩羯座"
                }
            }
            return ""
        }

        @JvmStatic
        fun getXingZuoName(xz:String):String{
            when(xz){
                "白羊座" -> return "baiyang"
                "处女座" -> return "chunv"
                "金牛座" -> return "jinniu"
                "巨蟹座" -> return "juxie"
                "摩羯座" -> return "mojie"
                "射手座" -> return "sheshou"
                "狮子座" -> return "shizi"
                "双鱼座" -> return "shuangyu"
                "双子座" -> return "shuangzi"
                "水瓶座" -> return "shuiping"
                "天秤座" -> return "tiancheng"
                "天蝎座" -> return "tianxie"
            }
            return "baiyang"
        }

        @JvmStatic
        fun getXingZuoDate(xz:String):String{
            when(xz){
                "白羊座" -> return "03.21-04.19"
                "处女座" -> return "04.20-05.20"
                "金牛座" -> return "05.21-06.21"
                "巨蟹座" -> return "06.22-07.22"
                "摩羯座" -> return "07.23-08.22"
                "射手座" -> return "08.23-09.22"
                "狮子座" -> return "09.23-10.23"
                "双鱼座" -> return "10.24-11.22"
                "双子座" -> return "11.23-12.21"
                "水瓶座" -> return "12.22-01.19"
                "天秤座" -> return "01.20-02.18"
                "天蝎座" -> return "02.19-03.20"
            }
            return "0321-0419"
        }
    }

}